<template>
  <div class="header">
    <div class="header-left">
      <div class="iconfont">&#xe624;</div>
    </div>
    <div class="header-input">
      <span class="iconfont">&#xe697;</span>
      <span>输入城市/景点 {{this.doubleCity}}</span>
    </div>
    <router-link to="/city">
      <div class="header-right">
        <!--<span>{{this.$store.state.city}}</span>-->
        <span>{{this.currentCity}}</span>
        <span class="iconfont">&#xe65b;</span>
      </div>
    </router-link>
  </div>
</template>
<script type='text/babel'>
import { mapState, mapGetters } from 'vuex'
export default {
  data () {
    return {
    }
  },
  created () {},
  mounted () {},
  updated () {},
  methods: {},
  computed: {
    ...mapState({
      currentCity: 'city'
    }),
    ...mapGetters({
      doubleCity: 'doubleCity'
    })
  },
  watch: {},
  components: { }
}
</script>
<style scoped lang="scss" rel="stylesheet/scss">
  @import "../../../assets/styles/reset.css";
  @import "../../../assets/styles/variable";
  .header{
    height:44px;
    background: $bgColor1;
    @include displayFlex();
    .header-left{
      height:44px;
      padding:0 10px;
      line-height: 44px;
      color: #fff;
    }
    .header-input{
      @include flex(1);
      margin: 7px 0;
      padding: 0 5px;
      border-radius: 4px;
      line-height: 30px;
      background: #fff;
      color: #999;
      font-size: 0;
      span{
        font-size: 14px;
        &:last-child{
          padding-left: 5px;
        }
      }
    }
    .header-right{
      min-width: 50px;
      padding: 0 10px;
      line-height: 44px;
      color: #fff;
    }
  }
</style>
